package com.zl.tby.service;

import com.zl.tby.model.TbyFileBusiness;

import java.util.List;

/**
 * 附件与业务关系表 service
 * @author changpeng
 * @version 1.0
 * @since 2024/8/6 19:56
 */
public interface ITbyFileBusinessService {

    /**
     * 保存附件关系
     * @param businessIdentifying: 业务标识
     * @param businessId: 业务id
     * @param attach：附件地址
     */
    void saveAttach(String businessIdentifying, Long businessId, String attach);

    /**
     * 根据业务标识和业务id删除数据
     * @param businessIdentifying: 业务标识
     * @param businessId: 业务id
     * @return 删除结果
     */
    int deleteByIdentifyingAndId(String businessIdentifying, Long businessId);

    /**
     * 根据业务标识和业务id获取附件
     * @param businessIdentifying: 业务标识
     * @param businessId：业务id
     * @return 结果
     */
    List<TbyFileBusiness> getAttach(String businessIdentifying, Long businessId);
}
